from flask import Flask

app = Flask(__name__)

# 前端请求的方式：
#  get
#  post
#  put   delete
@app.route("/hello",methods=["GET"])
def hello():
    return "Hello World!!!"

@app.route("/hi",methods=["POST","GET"])
def hi():
    return "Hi 聂茹风"


if __name__ == '__main__':
    app.run(port=8080)